﻿using System;
using System.Collections.Generic;
using System.Text;

namespace taobao
{
    //API:http://wiki.open.taobao.com/index.php/Taobao.picture.delete
    //taobao.picture.delete(删除图片空间图片)

    public partial class picture : taobao.Util.BaseObject
    {
        private Picture.DeletePut _putDelete = new taobao.Picture.DeletePut();
        /// <summary>
        /// taobao.picture.delete(删除图片空间图片) --- 输入参数
        /// </summary>
        public Picture.DeletePut PutDelete
        {
            set { _putDelete = value; }
            get { return _putDelete; }
        }

        /// <summary>
        /// taobao.picture.delete(删除图片空间图片)
        /// </summary>
        /// <returns></returns>
        public string deleteToString()
        {
            Dictionary<string, string> puts = taobao.Util.Convert.ToPut(PutDelete);
            puts.Add("sign", SignTopRequest(puts));
            return DoPost(puts);
        }

        /// <summary>
        /// taobao.picture.delete(删除图片空间图片)
        /// </summary>
        /// <returns></returns>
        public Picture.DeleteOut delete()
        {
            string strXml = deleteToString();
            Picture.DeleteOut outDelete = new taobao.Picture.DeleteOut();
            XmlToObject(strXml, outDelete, outDelete.error_rsp);
            return outDelete;
        }
    }
}
